//后台学生管理路由
'use strict';
//添加、列表、修改、删除、批量删除等url地址
const express = require('express');
const path = require('path');
const moment = require('moment')
//使用express的router方法
const studentRouter = express.Router();  //定义班级路由 
const studentCtr = require('./../../controllers/studentController.js')
studentRouter.get('/student_add',studentCtr.studentAdd);
studentRouter.get('/student_list',studentCtr.studentList);
studentRouter.post('/studentState',studentCtr.studentState);
studentRouter.post('/student_add',studentCtr.studentAddData);
studentRouter.get('/student_delete/:id',studentCtr.studentDelete);
studentRouter.get('/student_edit/:id',studentCtr.studentEdit);
studentRouter.post('/student_edit/:id',studentCtr.studentEditData);
studentRouter.post('/student_deleteAll',studentCtr.studentDeleteAll)
module.exports = studentRouter;